README File for:

"Racialized Misinformation, Factual Corrections, and Prejudicial Attitudes: The Cases of Welfare and Immigration"

The Journal of Politics

Eddy S. F. Yeung, University of Oxford and Texas A&M University (ORCID: 0000-0003-2843-6810)
Joseph Glasgow, Emory University

June 26, 2025

List of replication files:
- "codebook.pdf": codebook for Study 1, Study 2, and Study 3
- "study1_dataset.csv": dataset for Study 1
- "study1_main.R": R script that produces all experimental results for Study 1, including Figures 1-2 in the main text
- "study1_balance.R": R script that produces the covariate balance graphs for Study 1 (Figure S1)
- "study1_demographics.R": R script that produces the sample characteristics for Study 1 (Table S1)
- "study1_mde.R": R script that calculates the minimum detectable effects for Study 1 (Table S4)
- "study2_dataset.csv": dataset for Study 2
- "study2_main.R": R script that produces all experimental results for Study 2, including Figures 3-4 in the main text
- "study2_balance.R": R script that produces the covariate balance graphs for Study 2 (Figure S2)
- "study2_demographics.R": R script that produces the sample characteristics for Study 2 (Table S2)
- "study2_mde.R": R script that calculates the minimum detectable effects for Study 2 (Table S5)
- "study3_dataset.csv": dataset for Study 3
- "study3_main.R": R script that produces all experimental results for Study 3, including Figures 5-6 in the main text
- "study3_balance.R": R script that produces the covariate balance graphs for Study 3 (Figure S3)
- "study3_demographics.R": R script that produces the sample characteristics for Study 3 (Table S3)
- "study3_mde.R": R script that calculates the minimum detectable effects for Study 3 (Table S6)

------------------------------------------------------------------------------------------------------
Note 1: The replication was done with RStudio version 2024.12.1+563, and with the following R version:

platform       aarch64-apple-darwin20     arch           aarch64                      os             darwin20                  system         aarch64, darwin20       status                                     major          4                           minor          4.3                        year           2025                        month          02                        day            28                          svn rev        87843                       language       R                           version.string R version 4.4.3 (2025-02-28)nickname       Trophy Case

Note 2: The replication was conducted on macOS (Sequoia 15.5)

Note 3: R package versions for this replication are as follows:

tidyverse	v.2.0.0
dplyr		v.1.1.4
readr		v.2.1.5
forcats		v.1.0.0
stringr		v.1.5.1
ggplot2		v.3.5.1
tibble		v.3.2.1
lubridate	v.1.9.4
tidyr		v.1.3.1
purrr		v.1.0.4
estimatr	v.1.0.6
cowplot		v.1.1.3
texreg		v.1.39.4
multcomp	v.1.4-28
interflex	v.1.2.6
parameters	v.0.24.2
modelsummary	v.2.3.0
ivreg		v.0.6-5
broom		v.1.0.8
TH.data		v.1.1-3
MASS		v.7.3-65
survival	v.3.8-3
mvtnorm		v.1.3-3
gridExtra	v.2.3
cowplot		v.1.1.3